#ifndef MOVINGOBJECT_H
#define MOVINGOBJECT_H

#include <QGraphicsItem>
#include <QObject>


class MovingObject :public QObject, public QGraphicsItem
{
public:
    MovingObject();

    void acceptPos();
    void revertPos();
protected:
    QPointF realPos;
    QPointF lastSafePos;
};

#endif // MOVINGOBJECT_H
